import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.12

ApplicationWindow {
    visible: true
    id: window
    width: Screen.desktopAvailableWidth / 2
    height: Screen.desktopAvailableHeight / 2
    title: qsTr("TaskS")
    color: "#666666";


    Rectangle{
        id:rect1;
        height: 45;
        color: "gray";
        anchors.top:parent.top;
        anchors.left: parent.left;
        anchors.right: parent.right;
        Text{ text: "Top"; anchors.verticalCenter: parent.verticalCenter; anchors.left: parent.left;color:"white"; }
    }

    LeftWidget {
        id: leftWidgetID;
        anchors.top:rect1.bottom;
        anchors.bottom: parent.bottom;
        anchors.left: parent.left;
        width: 200;
    }

    Rectangle{
        id:rect3;
        color: "green";
        width:leftWidgetID.width;
        anchors.top:rect1.bottom;
        anchors.bottom: parent.bottom;
        anchors.right:parent.right;
        Text{ text: "Right";anchors.right: parent.right;anchors.verticalCenter: parent.verticalCenter;color:"white"; }
    }

    Rectangle{
        id:rect4;
        color:"#FF605066";
        anchors.top:rect1.bottom;
        anchors.bottom: parent.bottom;
        anchors.left: leftWidgetID.right;
        anchors.right: rect3.left;
        Text{ text: "Center";anchors.centerIn: parent; color:"white";}
    }
}
